=head1 BASE INFORMATION

=head2 Filename

ApiDoc.pm

=head2 Path

/lib/Controller/Mobile/

=head2 Notes

=head2 ToDo's

=head2 Revision

=over 4

=item *

$HeadURL: http://catwork.googlecode.com/svn/trunk/lib/catwork/Controller/Mobile/ApiDoc.pm $

=item *

$Id: ApiDoc.pm 2 2011-03-20 16:14:09Z hg.winkler.77 $

=back

=head2 Header Source Code

=cut

package catwork::Controller::Mobile::ApiDoc;
use Moose;
use namespace::autoclean;

BEGIN {extends 'Catalyst::Controller'; }

=head1 NAME

catwork::Controller::Mobile::ApiDoc - Catalyst Controller

=head1 DESCRIPTION

Catalyst Controller.

=head1 METHODS

=cut


=head2 index

=head3 source code

=cut

sub index :Path :Args(0) {
    my ( $self, $c ) = @_;

    $c->response->body('Matched catwork::Controller::Mobile::ApiDoc in Mobile::ApiDoc.');
}

=head2 mobile

is called on every mobile action

=cut

sub mobile :Chained('/') :PathPart('m') :CaptureArgs(0) {

   my ($self, $c ) = @_;
   $c->stash->{current_view} = "Mobile";

}

=head2 list

this function returns a json structure representing our lib folder;

=head3 source code

=cut

sub list :Chained('mobile') :PathPart('apidoc/') :Args(0) {

    my ($self, $c) = @_;

    $c->stash->{template} = 'apidoc/apidoc.tt2';

}


=head1 AUTHOR

Hans-Georg Winkler,,,

=head1 LICENSE

This library is free software. You can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

__PACKAGE__->meta->make_immutable;

